import request from '@/utils/request'

// 查询电梯信息列表
export function listElevatorManagement(query) {
  return request({
    url: '/deviceManagement/elevatorManagement/list',
    method: 'get',
    params: query
  })
}

// 查询电梯信息详细
export function getElevatorManagement(elevatorId) {
  return request({
    url: '/deviceManagement/elevatorManagement/' + elevatorId,
    method: 'get'
  })
}

// 新增电梯信息
export function addElevatorManagement(data) {
  return request({
    url: '/deviceManagement/elevatorManagement',
    method: 'post',
    data: data
  })
}

// 修改电梯信息
export function updateElevatorManagement(data) {
  return request({
    url: '/deviceManagement/elevatorManagement',
    method: 'put',
    data: data
  })
}

// 删除电梯信息
export function delElevatorManagement(elevatorId) {
  return request({
    url: '/deviceManagement/elevatorManagement/' + elevatorId,
    method: 'delete'
  })
}

// 查询未绑定文档的电梯
export function listUnboundElevators() {
  return request({
    url: '/deviceManagement/elevatorManagement/listUnbound',
    method: 'get'
  })
}
